# 获取当前登录用户的用户名
current_user=$SUDO_USER
# 初始化数据库
echo "Initializing database..."
sudo -u "$current_user" /home/"$current_user"/ivsql/bin/initdb -D /home/"$current_user"/ivsql/data
echo "Database initialized successfully."



